/*******************************************************************************
* 
* vector Test
* 
* http://www.cplusplus.com/reference/vector/vector/vector/
*
*   range (3)	
*   template <class InputIterator>
*            vector (InputIterator first, InputIterator last,
*                    const allocator_type& alloc = allocator_type());
* 
******************************************************************************/
#include "stdafx.h"
#include "CppUnitTest.h"
#include "../common/common.h"

using namespace std;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace ut
{
	TEST_CLASS(VectorTest)
	{
	public:
		
		TEST_METHOD(VectorTestMethod1)
		{
			vector<string>* v1 = new vector<string>();
            v1->push_back("Hello");
            v1->push_back("World");

            vector<string> v2(v1->cbegin(), v1->cend());
            for(auto it=v2.cbegin(); it<v2.cend(); it++)
            {
                Logger::WriteMessage(it->c_str());
            }

            delete v1;
            for(auto it=v2.cbegin(); it<v2.cend(); it++)
            {
                Logger::WriteMessage(it->c_str());
            }
		}

	};
}